package com.example.weibo_app.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;


@Data
@ApiModel(description = "文章实体类")
public class Article {
    @ApiModelProperty(value = "文章ID", example = "1")
    private Integer id;

    @ApiModelProperty(value = "编写的用户ID", example = "1")
    private Integer userId;

    @ApiModelProperty(value = "文章标题", example = "如何学习Java")
    private String title;

    @ApiModelProperty(value = "文章内容", example = "这是文章的详细内容...")
    private String content;

    @ApiModelProperty(value = "点赞数量", example = "100")
    private Integer likes;

    @ApiModelProperty(value = "创建时间", example = "2024-12-01T10:00:00")
    private LocalDateTime createdTime;

    @ApiModelProperty(value = "修改时间", example = "2024-12-02T12:00:00")
    private LocalDateTime updatedTime;
}
